package com.example.redis.demo.response;

public class RefreshTokenResponse extends BaseResponse {

    private RefreshResult data;


    public RefreshResult getData() {
        return data;
    }

    public void setData(RefreshResult data) {
        this.data = data;
    }

    public RefreshTokenResponse(String code, String message, RefreshResult refreshResult) {
        super(code, message);
        this.data = refreshResult;
    }


    public static class RefreshResult {
        private String accessToken;

        private Long accessTokenExpiresIn;

        public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public Long getAccessTokenExpiresIn() {
            return accessTokenExpiresIn;
        }

        public void setAccessTokenExpiresIn(Long accessTokenExpiresIn) {
            this.accessTokenExpiresIn = accessTokenExpiresIn;
        }
    }
}
